projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f904ed
)
(directory_files_internal): Initialize errno.
author
Gerd Moellmann
<gerd@gnu.org>
Tue, 13 Feb 2001 15:13:54 +0000
(15:13 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Tue, 13 Feb 2001 15:13:54 +0000
(15:13 +0000)
(toplevel): Include errno.h.
src/dired.c
patch
|
blob
|
history
diff --git
a/src/dired.c
b/src/dired.c
index 4994241c2cf68ad4f259af0b8dc7500c705cf6cb..f3f13534a876231db5bd9d99f468b78a928b7be9 100644
(file)
--- a/
src/dired.c
+++ b/
src/dired.c
@@
-27,6
+27,7
@@
Boston, MA 02111-1307, USA. */
#include <sys/stat.h>
#include "systime.h"
+#include <errno.h>
#ifdef VMS
#include <string.h>
@@
-208,6
+209,7
@@
directory_files_internal (directory, full, match, nosort, attrs)
#endif /* not VMS */
/* Loop reading blocks until EOF or error. */
+ errno = 0;
while ((dp = readdir (d)) != NULL)
{
if (DIRENTRY_NONEMPTY (dp))